package controller;

import model.CommonValues;
import model.database.DBException;

/**
 * Interface for possible transactions for Administrator user
 */
public interface AdministratorController {

	/**
	 * Adds a new record with given user-name, permission and default password.
	 * Cannot add user if there is another user record with given user-name, password and permission
	 * @param userName- user-name for the new record
	 * @param permission- permission for the new record
	 * @return True if could add a new user-name record, False if not
	 * @throws DBException if had errors connecting to database
	 */
	public boolean addUserRecord(String userName,
			CommonValues.permissions permission) throws DBException;
}